﻿using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Rescue_of_the_Dwarvenzombies.SceneObjects;
using GameLibrary;

namespace Rescue_of_the_Dwarvenzombies.SceneLayers
{
    internal class WeaponLayer : SceneLayer
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WeaponLayer"/> class.
        /// </summary>
        /// <param name="game">The game.</param>
        public WeaponLayer(Game game)
            : base(game)
        {
            SceneObjects = new List<ISceneObject>();
            Child = new EnemyLayer(game);
            LayerName = Constant.Layer.Weapon;
            Depth = Constant.WEAPON_LAYER_DEPTH;
        }

        /// <summary>
        /// Adds the object.
        /// </summary>
        /// <param name="sceneObject">The scene object.</param>
        public void AddObject(ISceneObject sceneObject)
        {
            SceneObjects.Add(sceneObject);
        }

        /// <summary>
        /// Removes the object.
        /// </summary>
        /// <param name="sceneObject">The scene object.</param>
        public void RemoveObject(ISceneObject sceneObject)
        {
            SceneObjects.Remove(sceneObject);
        }

        /// <summary>
        /// Inits the objects.
        /// </summary>
        protected override void InitObjects()
        {
        }
    }
}